import vuePlugin from 'rollup-plugin-vue';
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import json from 'rollup-plugin-json';

// rollup.config.js
export default {
  input: './index.js',
  output: [
    {
        format: 'cjs',
        file: 'dist/vue3-json-excel.cjs.js'
    },
    {
        format: 'esm',
        file: 'dist/vue3-json-excel.esm.js'
    },
    {
        name: 'JsonExcel',
        format: 'umd',
        file: 'dist/vue3-json-excel.umd.js'
    }
  ],
  external: [
    'vue'
  ],
  plugins: [
      vuePlugin(),
      commonjs(),
      resolve(),
      json()
  ]
};